package org.pp.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SysMenuAdd {


    @Schema(description = "父级Id")
    private Long pid;

    @Schema(description = "名称")
    @NotBlank(message = "名称不为空")
    private String name;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "后端权限标识")
    private String api;

    @Schema(description = "前端路由/按钮")
    private String route;

    @Schema(description = "0代表目录 1代表菜单 2代表按钮")
    private Integer type;

    @Schema(description = "排序")
    private Integer sort;
}
